.scatter-horizontal-bar-chart {
  width: 100%;
  height: 100%;
  position: relative;
  .scatter-horizontal-chart {
    width: 100%;
    position: relative;
    .chart-bar-y-axis {
      .chart-bar-y-axis-item {
        display: flex;
        position: relative;
        z-index: 1;
        align-items: center;
        margin-top: 32px;
        .chart-bar-y-axis-item-name {
          text-align: right;
          display: -webkit-box;
          overflow: hidden;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          flex: 1 1 auto;
          max-width: 100px;
          font-size: 12px;
          color: #8b98a9;
          box-sizing: border-box;
        }
        .chart-bar-y-axis-item-percent {
          display: flex;
          align-items: center;
          position: relative;
          margin-left: 3px;
          div {
            background: #eef2ff;
            display: inline-block;
          }
          .points {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            display: flex;
            align-items: center;
            background-color: transparent;
            .block {
              width: 18px;
              height: 18px;
              display: flex;
              justify-content: center;
              align-items: center;
              position: absolute;
              transform: translateX(-50%);
              .point {
                width: 10px;
                height: 10px;
                border: 2px solid #ffffff;
                border-radius: 50%;
                &:hover {
                  width: 18px;
                  height: 18px;
                  background: #5a86ff;
                  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
                  border: 3px solid #ffffff;
                  box-sizing: border-box;
                }
              }
            }
            
          }
        }
        &:hover {
          cursor: pointer;
        }
        &:nth-child(1) {
          margin-top: 0px;
        }
      }
    }

    .bar-x-axis {
      position: absolute;
      top: 0px;
      height: 100%;
      width: 50%;
      left: 101px;
      box-sizing: border-box;
      .chart-bar-x-axis {
        height: 114%;
        position: relative;
        width: 100%;
        .chart-bar-x-axis-li {
          position: absolute;
          top: -3px;
          width: 1px;
          height: 89%;
          border-right: 1px dashed #d7dbe0;
          font-size: 12px;
          color: #a6b1bf;
          span {
            position: absolute;
            bottom: -23px;
            display: block;
            width: 100px;
            text-align: center;
            left: -50px;
          }
          &:first-child {
            border-right: 1px solid #d7dbe0;
          }
        }
      }
    }
  }
  .legend {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 46px;
    .legend-item {
      display: flex;
      margin-right: 24px;
      align-items: center;
      .block {
        display: inline-block;
        width: 10px;
        height: 10px;
        // border-radius: 50%;
        margin-right: 8px;
      }
      .text {
        font-size: 12px;
        color: #617185;
      }
    }
  }
}

.ant-tooltip {
  .ant-tooltip-content {
    .ant-tooltip-inner {
      padding-top: 16px;
      padding-bottom: 16px;
      padding-left: 24px;
      padding-right: 20px;
      box-shadow: 0px 6px 24px 0px rgba(7, 19, 43, 0.08);
      .tooltip-title {
        display: flex;
        align-items: baseline;
        .block {
          display: inline-block;
          width: 10px;
          height: 10px;
          background: #5a86ff;
          border-radius: 5px;
          border: 1px solid #ffffff;
          margin-right: 5px;
        }
        .text {
          font-size: 12px;
          color: #617185;
        }
        .top {
          margin-bottom: 4px;
        }
      }
    }
  }
}

.ant-tooltip.scatter-horizontal-bar-chart-tooltip.ant-tooltip-placement-right {
  .ant-tooltip-content {
    .ant-tooltip-inner {
      padding: 12px;
    }
  }
}